package com.uwo.commons.samples.controller;

import com.uwo.commons.configuration.aop.validate.ValidateAspect;
import com.uwo.commons.configuration.aop.validate.ValidateProperties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ValidateController {

    private final Logger log = LoggerFactory.getLogger(ValidateController.class);

    @Autowired
    private ValidateProperties validateProperties;

    @RequestMapping(value = {"", "/"})
    public Object test(){
        log.info("validate properties = {}", validateProperties);
        return "ssss";
    }


}
